package com.itheima.pool.dao;

import com.itheima.pool.domain.Student;

import java.sql.SQLException;
import java.util.ArrayList;

public interface StudentDao {
    //查询所有的学生
    public abstract ArrayList<Student> findAll() throws SQLException;
    //根据id查询学生
    public abstract Student findById(Integer id) throws SQLException;
    //新增学生
    public abstract int insert(Student student) throws SQLException;
    //修改学生
    public abstract int update(Student student) throws SQLException;
    //删除学生
    public abstract int delete(Integer id) throws SQLException;
}
